package com.shuang.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DbGoodsClassExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DbGoodsClassExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCIdIsNull() {
            addCriterion("c_id is null");
            return (Criteria) this;
        }

        public Criteria andCIdIsNotNull() {
            addCriterion("c_id is not null");
            return (Criteria) this;
        }

        public Criteria andCIdEqualTo(Long value) {
            addCriterion("c_id =", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdNotEqualTo(Long value) {
            addCriterion("c_id <>", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdGreaterThan(Long value) {
            addCriterion("c_id >", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdGreaterThanOrEqualTo(Long value) {
            addCriterion("c_id >=", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdLessThan(Long value) {
            addCriterion("c_id <", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdLessThanOrEqualTo(Long value) {
            addCriterion("c_id <=", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdIn(List<Long> values) {
            addCriterion("c_id in", values, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdNotIn(List<Long> values) {
            addCriterion("c_id not in", values, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdBetween(Long value1, Long value2) {
            addCriterion("c_id between", value1, value2, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdNotBetween(Long value1, Long value2) {
            addCriterion("c_id not between", value1, value2, "cId");
            return (Criteria) this;
        }

        public Criteria andCNameIsNull() {
            addCriterion("c_name is null");
            return (Criteria) this;
        }

        public Criteria andCNameIsNotNull() {
            addCriterion("c_name is not null");
            return (Criteria) this;
        }

        public Criteria andCNameEqualTo(String value) {
            addCriterion("c_name =", value, "cName");
            return (Criteria) this;
        }

        public Criteria andCNameNotEqualTo(String value) {
            addCriterion("c_name <>", value, "cName");
            return (Criteria) this;
        }

        public Criteria andCNameGreaterThan(String value) {
            addCriterion("c_name >", value, "cName");
            return (Criteria) this;
        }

        public Criteria andCNameGreaterThanOrEqualTo(String value) {
            addCriterion("c_name >=", value, "cName");
            return (Criteria) this;
        }

        public Criteria andCNameLessThan(String value) {
            addCriterion("c_name <", value, "cName");
            return (Criteria) this;
        }

        public Criteria andCNameLessThanOrEqualTo(String value) {
            addCriterion("c_name <=", value, "cName");
            return (Criteria) this;
        }

        public Criteria andCNameLike(String value) {
            addCriterion("c_name like", value, "cName");
            return (Criteria) this;
        }

        public Criteria andCNameNotLike(String value) {
            addCriterion("c_name not like", value, "cName");
            return (Criteria) this;
        }

        public Criteria andCNameIn(List<String> values) {
            addCriterion("c_name in", values, "cName");
            return (Criteria) this;
        }

        public Criteria andCNameNotIn(List<String> values) {
            addCriterion("c_name not in", values, "cName");
            return (Criteria) this;
        }

        public Criteria andCNameBetween(String value1, String value2) {
            addCriterion("c_name between", value1, value2, "cName");
            return (Criteria) this;
        }

        public Criteria andCNameNotBetween(String value1, String value2) {
            addCriterion("c_name not between", value1, value2, "cName");
            return (Criteria) this;
        }

        public Criteria andCOrderIsNull() {
            addCriterion("c_order is null");
            return (Criteria) this;
        }

        public Criteria andCOrderIsNotNull() {
            addCriterion("c_order is not null");
            return (Criteria) this;
        }

        public Criteria andCOrderEqualTo(Short value) {
            addCriterion("c_order =", value, "cOrder");
            return (Criteria) this;
        }

        public Criteria andCOrderNotEqualTo(Short value) {
            addCriterion("c_order <>", value, "cOrder");
            return (Criteria) this;
        }

        public Criteria andCOrderGreaterThan(Short value) {
            addCriterion("c_order >", value, "cOrder");
            return (Criteria) this;
        }

        public Criteria andCOrderGreaterThanOrEqualTo(Short value) {
            addCriterion("c_order >=", value, "cOrder");
            return (Criteria) this;
        }

        public Criteria andCOrderLessThan(Short value) {
            addCriterion("c_order <", value, "cOrder");
            return (Criteria) this;
        }

        public Criteria andCOrderLessThanOrEqualTo(Short value) {
            addCriterion("c_order <=", value, "cOrder");
            return (Criteria) this;
        }

        public Criteria andCOrderIn(List<Short> values) {
            addCriterion("c_order in", values, "cOrder");
            return (Criteria) this;
        }

        public Criteria andCOrderNotIn(List<Short> values) {
            addCriterion("c_order not in", values, "cOrder");
            return (Criteria) this;
        }

        public Criteria andCOrderBetween(Short value1, Short value2) {
            addCriterion("c_order between", value1, value2, "cOrder");
            return (Criteria) this;
        }

        public Criteria andCOrderNotBetween(Short value1, Short value2) {
            addCriterion("c_order not between", value1, value2, "cOrder");
            return (Criteria) this;
        }

        public Criteria andCParentidIsNull() {
            addCriterion("c_parentid is null");
            return (Criteria) this;
        }

        public Criteria andCParentidIsNotNull() {
            addCriterion("c_parentid is not null");
            return (Criteria) this;
        }

        public Criteria andCParentidEqualTo(Short value) {
            addCriterion("c_parentid =", value, "cParentid");
            return (Criteria) this;
        }

        public Criteria andCParentidNotEqualTo(Short value) {
            addCriterion("c_parentid <>", value, "cParentid");
            return (Criteria) this;
        }

        public Criteria andCParentidGreaterThan(Short value) {
            addCriterion("c_parentid >", value, "cParentid");
            return (Criteria) this;
        }

        public Criteria andCParentidGreaterThanOrEqualTo(Short value) {
            addCriterion("c_parentid >=", value, "cParentid");
            return (Criteria) this;
        }

        public Criteria andCParentidLessThan(Short value) {
            addCriterion("c_parentid <", value, "cParentid");
            return (Criteria) this;
        }

        public Criteria andCParentidLessThanOrEqualTo(Short value) {
            addCriterion("c_parentid <=", value, "cParentid");
            return (Criteria) this;
        }

        public Criteria andCParentidIn(List<Short> values) {
            addCriterion("c_parentid in", values, "cParentid");
            return (Criteria) this;
        }

        public Criteria andCParentidNotIn(List<Short> values) {
            addCriterion("c_parentid not in", values, "cParentid");
            return (Criteria) this;
        }

        public Criteria andCParentidBetween(Short value1, Short value2) {
            addCriterion("c_parentid between", value1, value2, "cParentid");
            return (Criteria) this;
        }

        public Criteria andCParentidNotBetween(Short value1, Short value2) {
            addCriterion("c_parentid not between", value1, value2, "cParentid");
            return (Criteria) this;
        }

        public Criteria andCIsParentIsNull() {
            addCriterion("c_is_parent is null");
            return (Criteria) this;
        }

        public Criteria andCIsParentIsNotNull() {
            addCriterion("c_is_parent is not null");
            return (Criteria) this;
        }

        public Criteria andCIsParentEqualTo(Short value) {
            addCriterion("c_is_parent =", value, "cIsParent");
            return (Criteria) this;
        }

        public Criteria andCIsParentNotEqualTo(Short value) {
            addCriterion("c_is_parent <>", value, "cIsParent");
            return (Criteria) this;
        }

        public Criteria andCIsParentGreaterThan(Short value) {
            addCriterion("c_is_parent >", value, "cIsParent");
            return (Criteria) this;
        }

        public Criteria andCIsParentGreaterThanOrEqualTo(Short value) {
            addCriterion("c_is_parent >=", value, "cIsParent");
            return (Criteria) this;
        }

        public Criteria andCIsParentLessThan(Short value) {
            addCriterion("c_is_parent <", value, "cIsParent");
            return (Criteria) this;
        }

        public Criteria andCIsParentLessThanOrEqualTo(Short value) {
            addCriterion("c_is_parent <=", value, "cIsParent");
            return (Criteria) this;
        }

        public Criteria andCIsParentIn(List<Short> values) {
            addCriterion("c_is_parent in", values, "cIsParent");
            return (Criteria) this;
        }

        public Criteria andCIsParentNotIn(List<Short> values) {
            addCriterion("c_is_parent not in", values, "cIsParent");
            return (Criteria) this;
        }

        public Criteria andCIsParentBetween(Short value1, Short value2) {
            addCriterion("c_is_parent between", value1, value2, "cIsParent");
            return (Criteria) this;
        }

        public Criteria andCIsParentNotBetween(Short value1, Short value2) {
            addCriterion("c_is_parent not between", value1, value2, "cIsParent");
            return (Criteria) this;
        }

        public Criteria andCCreateTimeIsNull() {
            addCriterion("c_create_time is null");
            return (Criteria) this;
        }

        public Criteria andCCreateTimeIsNotNull() {
            addCriterion("c_create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCCreateTimeEqualTo(Date value) {
            addCriterion("c_create_time =", value, "cCreateTime");
            return (Criteria) this;
        }

        public Criteria andCCreateTimeNotEqualTo(Date value) {
            addCriterion("c_create_time <>", value, "cCreateTime");
            return (Criteria) this;
        }

        public Criteria andCCreateTimeGreaterThan(Date value) {
            addCriterion("c_create_time >", value, "cCreateTime");
            return (Criteria) this;
        }

        public Criteria andCCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("c_create_time >=", value, "cCreateTime");
            return (Criteria) this;
        }

        public Criteria andCCreateTimeLessThan(Date value) {
            addCriterion("c_create_time <", value, "cCreateTime");
            return (Criteria) this;
        }

        public Criteria andCCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("c_create_time <=", value, "cCreateTime");
            return (Criteria) this;
        }

        public Criteria andCCreateTimeIn(List<Date> values) {
            addCriterion("c_create_time in", values, "cCreateTime");
            return (Criteria) this;
        }

        public Criteria andCCreateTimeNotIn(List<Date> values) {
            addCriterion("c_create_time not in", values, "cCreateTime");
            return (Criteria) this;
        }

        public Criteria andCCreateTimeBetween(Date value1, Date value2) {
            addCriterion("c_create_time between", value1, value2, "cCreateTime");
            return (Criteria) this;
        }

        public Criteria andCCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("c_create_time not between", value1, value2, "cCreateTime");
            return (Criteria) this;
        }

        public Criteria andCUpdateTimeIsNull() {
            addCriterion("c_update_time is null");
            return (Criteria) this;
        }

        public Criteria andCUpdateTimeIsNotNull() {
            addCriterion("c_update_time is not null");
            return (Criteria) this;
        }

        public Criteria andCUpdateTimeEqualTo(Date value) {
            addCriterion("c_update_time =", value, "cUpdateTime");
            return (Criteria) this;
        }

        public Criteria andCUpdateTimeNotEqualTo(Date value) {
            addCriterion("c_update_time <>", value, "cUpdateTime");
            return (Criteria) this;
        }

        public Criteria andCUpdateTimeGreaterThan(Date value) {
            addCriterion("c_update_time >", value, "cUpdateTime");
            return (Criteria) this;
        }

        public Criteria andCUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("c_update_time >=", value, "cUpdateTime");
            return (Criteria) this;
        }

        public Criteria andCUpdateTimeLessThan(Date value) {
            addCriterion("c_update_time <", value, "cUpdateTime");
            return (Criteria) this;
        }

        public Criteria andCUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("c_update_time <=", value, "cUpdateTime");
            return (Criteria) this;
        }

        public Criteria andCUpdateTimeIn(List<Date> values) {
            addCriterion("c_update_time in", values, "cUpdateTime");
            return (Criteria) this;
        }

        public Criteria andCUpdateTimeNotIn(List<Date> values) {
            addCriterion("c_update_time not in", values, "cUpdateTime");
            return (Criteria) this;
        }

        public Criteria andCUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("c_update_time between", value1, value2, "cUpdateTime");
            return (Criteria) this;
        }

        public Criteria andCUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("c_update_time not between", value1, value2, "cUpdateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}